//
//  YJProgressHUD.h
//  PictureHouseKeeper
//
//  Created by 李亚军 on 16/8/19.
//  Copyright © 2016年 zyyj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

typedef enum{
    YJProgressModeOnlyText = 10,           //文字
    YJProgressModeLoading,              //加载菊花
    YJProgressModeCircleLoading,         //加载圆形
    YJProgressModeSuccess               //成功
    
}YJProgressMode;


@interface YJProgressHUD : NSObject

/*===============================   属性   ================================================*/

@property (nonatomic,strong) MBProgressHUD  *hud;


/*===============================   方法   ================================================*/

+(instancetype)shareinstance;

//显示
+(void)show:(NSString *)msg inView:(UIView *)view mode:(YJProgressMode)myMode;

//隐藏
+(void)hide;


/** 只显示文字 */
+(void)showOnlyText:(NSString *)msg inView:(UIView *)view;


/** 显示进度 */
+(void)showProgress:(NSString *)msg inView:(UIView *)view;

/** 显示成功提示 */
+(void)showSuccess:(NSString *)msg inview:(UIView *)view;

/** 显示提示（1秒后消失） */
+(void)showMessage:(NSString *)msg inView:(UIView *)view;

/** 显示提示（N秒后消失） */
+(void)showMessage:(NSString *)msg inView:(UIView *)view afterDelayTime:(NSInteger)delay;

/** 在最上层显示 */
+(void)showMsgWithoutView:(NSString *)msg;

#pragma mark - 自定义显示图片
/** 显示图片 */
+ (void)showMessage:(NSString *)msg duration:(CGFloat)time view:(UIView *)view;
@end
